package cn.edu.neusoft.wuguangsheng.market.model;

import cn.edu.neusoft.wuguangsheng.market.bean.RegisterBean;
import cn.edu.neusoft.wuguangsheng.market.iface.UpdateCommentIface;
import cn.edu.neusoft.wuguangsheng.market.listener.TListener;
import cn.edu.neusoft.wuguangsheng.market.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

/**
 * Created by little on 2018/4/22.
 */

public class UpdateCommentModel extends RetrofitBaseModel implements UpdateCommentIface<RegisterBean> {
    private AllService allService;
    private Retrofit retrofit;
    public UpdateCommentModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void updateComment(String orid, String fid, String content, TListener<RegisterBean> tListener) {
        Call<RegisterBean> call= allService.updateComment(orid,fid,content);
        //callenqueueList(call,listListener);
        callenqueue(call,tListener);
    }
}
